import {request} from '/util/request'

const token = uni.getStorageSync('token');

export function queryLearnRecordByUserId (userId, type) {
	return request.get('/record/queryLearnRecordByUserId', {
			userId,
			type
	})
}

export function uploadProcess (userProcess) {
	return request.post('/record/uploadProcess', userProcess)
}

export function list (learnRecord) {
	return request.post('/record/list', learnRecord)
}

export function update (learnRecord) {
	return request.post('/record/update', learnRecord)
}

export function selectOne (learnRecord) {
	return request.post('/record/selectOne', learnRecord)
}